package com.hua.nailcampus.acl.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hua.nailcampus.acl.model.vo.DynamicVo;
import lombok.Data;

/**
 * @Author:chenjianhua
 * @Date:2023/12/21 20:29
 * @Version 1.8
 */
@Data
@TableName("nc_dynamic")
public class Dynamic extends BaseEntity{
    private static final long serialVersionUID = 1L;
    @TableField("user_id")
    private Integer userId;
    @TableField("content")
    private String content;

    public Dynamic(){
    }
    public Dynamic(DynamicVo dynamicVo){
        this.userId = dynamicVo.getUserId();
        this.content = dynamicVo.getContent();
    }
}
